# request
# get请求
import requests

# query = input("请输入搜索内容")
url = f"http://120.25.241.31:9000/api/uaa/oauth/token"

# 请求头
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.44"
}

data = {
    "client_id": "uuaClient",
    "client_secret": "Y7w0sI3L^UkWD1(ZXuZ",
    "grant_type": "password",
    "username": "root",
    "password": "123"
}

# {"data":{"client_id":"uuaClient","client_secret":"Y7w0sI3L^UkWD1(ZXuZ","grant_type":"password","username":"root","password":"123"}}

res = requests.post(url, headers=headers, data=data)

print(res.text)
res.close()
